import os.path
os.sys.path.append(os.path.join( os.path.dirname(__file__), '../../..')) #将上上级目录加载到python
# import os.path as osp
# import sys
#
# def add_path(path):
#     if path not in sys.path:
#         sys.path.insert(0, path)
#
# this_dir = osp.dirname(__file__)
#
# # Add caffe to PYTHONPATH
# caffe_path = osp.join(this_dir,'..','aligned_reid', 'utils')
# add_path(caffe_path)